package com.candy.homework;

/**
 * @author donglin
 * @Title:
 * @类名: Test02
 * @date 2020/7/24
 */
public class Test02 {
    public static void main(String[] args) {
        ColEmployee[] cc={
                new SalariedEmployee("月薪",7,3000),
                new HourlyEmployee("小时工",7,16,170),
                new SalesEmployee("销售",7,10000,1.25)
        };
        for (int i = 0; i <cc.length ; i++) {
            new Company().getSalary(cc[i],7);
    }
    }
}
